from flask import render_template, current_app
# from info import redis_store
from . import index_blu


@index_blu.route('/')
def index():
    # 路由
    # redis_store.set('name', 'xiaoming')
    # session['name'] = 'xiaoming'
    # session['age'] = '18'
    # print(session.get('name'))
    # print(session.get('age'))

    return render_template('news/index.html')


@index_blu.route('/favicon.ico')
def favicon():
    return current_app.send_static_file('news/favicon.ico')
